﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Model.Dtos.Watch;
using WomanMotion.WebApi.Model.Entitys;

namespace WomanMotion.WebApi.Model.Dtos.Classify
{
    /// <summary>
    /// 分类试图模型
    /// </summary>
    public class ClassifyVM : BaseVM
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        public long Parentid { get; set; }

        /// <summary>
        /// 默认观看平台ID
        /// </summary>
        public long Watchid { get; set; }

        /// <summary>
        ///默认观看对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Watchid))]
        public WatchVM? Watch { get; set; } //不能赋值只能是null

        /// <summary>
        /// 分类名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        public int Layer { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}